﻿using SuperSocket.SocketBase;
using SuperSocket.SocketBase.Protocol;
using System;
using TransferServerLib.UpLoad;
namespace TransferServerLib
{
    public class TransferSession : TransferSession<TransferSession>, IDisposable
    {
        private TransferServerLib.UpLoad.UpLoadEngine _UpLoadEngine;

        public void Dispose()
        {
            if (this._UpLoadEngine != null)
            {
                this._UpLoadEngine.Dispose();
                this._UpLoadEngine = null;
            }
        }

        public TransferServerLib.UpLoad.UpLoadEngine UpLoadEngine
        {
            get
            {
                if (this._UpLoadEngine == null)
                {
                    this._UpLoadEngine = new TransferServerLib.UpLoad.UpLoadEngine(this);
                }
                return this._UpLoadEngine;
            }
        }
    }
    public class TransferSession<TWebSocketSession> : AppSession<TWebSocketSession, BinaryRequestInfo>, IAppSession, ISessionBase where TWebSocketSession : TransferSession<TWebSocketSession>, new()
    {
    }

 

 

}
